package com.ruoyi.dynamic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.pojo.result.Pages;
import com.ruoyi.dynamic.model.pojo.entity.RoomGiftRecord;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomRankSearchRequest;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomRankUserInfoResult;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomUserInfoResult;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

/**
 * <p>
 * 房间赠送礼物记录表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-11-30
 */
public interface IRoomGiftRecordService extends IService<RoomGiftRecord> {


    /**
     * 添加礼物送出记录
     */
    void addRecord(Long roomId, String roomNumber, Long userId, Set<Long> aimUserId, Long gift, String remark, BigDecimal money, Integer contr);


    /**
     * 计算房间送礼人数
     */
    Integer countGiveCount(Long id);


    /**
     * 根据房间id和礼物id查询此礼物送出多少数量
     */
    Integer getGiftGiveNumberByRoomId(Long roomId, Long giftId, Date time);

    /**
     * 排行榜单
     */
    AppRoomRankUserInfoResult listPage(AppRoomRankSearchRequest request, Long userId);


}
